package phone.qyg.com.qyg.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：lblbh on 2017/12/16 10:10
 * 邮箱：lanbuhan@163.com
 * 功能：评论 二级
 */

public class DiscussItem implements Parcelable {

    /**
     *   "id": 14,//评论id
     “userId”:10070      //会员ID
     "content": "详细地址",
     "userName": “张三”   //评
     */

    public int head; //0 - 为头 就是二级回复第一个
    public int id;
    public int type;//1-场馆 2-活动
    public int userId;
    public int objectId;
    public boolean isFoot;//true-显示底部 false-不显示
    public String content;
    public String userName;
    public String dateDiff;
    public String reply_user_name;

    public DiscussItem() {}


    @SuppressWarnings("unchecked")
    public DiscussItem(Parcel in) {
        id = in.readInt();
        type = in.readInt();
        userId = in.readInt();
        objectId = in.readInt();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeInt(type);
        dest.writeInt(userId);
        dest.writeInt(objectId);
    }


    public static final Creator<DiscussItem> CREATOR = new Creator<DiscussItem>() {
        @Override
        public DiscussItem[] newArray(int size) {
            return new DiscussItem[size];
        }

        @Override
        public DiscussItem createFromParcel(Parcel in) {
            return new DiscussItem(in);
        }
    };

}
